package com.javasm.exercise;

/**
 * @classname:CarFactory
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/27 17:48
 * @version: 0.1
 * @since:1.8
 */
public class CarFactory {
    //    Java描述修车厂，修车厂具备，名字、地址、电话三个属性，具备修车的功能行为，
    private String factoryName ;
    private String factoryAddress;
    private int factoryPhone;


    public CarFactory() {
    }
    public CarFactory(String factoryName, String factoryAddress, int factoryPhone) {
        this.factoryName = factoryName;
        this.factoryAddress = factoryAddress;
        this.factoryPhone = factoryPhone;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public String getFactoryAddress() {
        return factoryAddress;
    }

    public void setFactoryAddress(String factoryAddress) {
        this.factoryAddress = factoryAddress;
    }

    public int getFactoryPhone() {
        return factoryPhone;
    }

    public void setFactoryPhone(int factoryPhone) {
        this.factoryPhone = factoryPhone;
    }

    public  void fix(){
        System.out.println("车轮子不够在"+this.factoryName+"修理");
    }

}
